package responeChain.game;


public abstract class Player {
    Player next;

    public static boolean stop = false;

    public void showWhoIam(){}
    public  void  setNext(Player next){
        this.next = next;
    }

    public Player getNext(){
        return  next;
    }

    public void playGame(){}

    public void sendFlow(){
        if (stop) {
            System.out.print("鼓声停止时，花在我这里！。。。。");
            playGame();
            return;
        }
        if (getNext()!=null ){
            System.out.print("花已经传到我这里！  ");
            next.showWhoIam();
            next.sendFlow();
        }
    }
}
